﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yugi.Client.Card;
using Yugi.Client.Card.FileDecoder;
namespace Yugi.Client.Converter
{
    partial class ConvertData
    {
        private void ConvertData_CARD_XOABAI(byte[] input)
        {

            int card_id = (int)input[0];

            Result.Add(card_id);
         
        }

        private void ConvertData_ANIMATION_CARD_TANCONG(byte[] input)
        {

            int card_id0 = (int)input[0];
            int card_id1 = (int)input[1];
            Result.Add(card_id0);
            Result.Add(card_id1);

        }

        private void ConvertData_ANIMATION_CARD_TANCONG_TRUCTIEP(byte[] input)
        {

            int card_id0 = (int)input[1];
            int type = (int)input[0];
            Result.Add(card_id0);
            Result.Add(type);
            

        }

        private void ConvertData_PLAYER_THAYDOIDIEM(byte[] input)
        {
            List<byte> list = new List<byte>(input);
            int p_id = Common.Decoder.DecoderByte(ref list);
            
            int diem = Common.Decoder.DecoderInt32(ref list);
            Result.Add(p_id);
            Result.Add(diem);

        }

        //----------------------------Send----------------------------//
        private void ConvertSendData_CARD_TANCONG(object[] input)
        {
            byte card_id1 = (byte)(int)input[0];
            byte card_id2 = (byte)(int)input[1];
            byte mss = (byte)(int)input[2];
            Result_Send.Add(card_id1);
            Result_Send.Add(card_id2);
            Result_Send.Add(mss);
        }
        private void ConvertSendData_CARD_TANCONG_TRUCTIEP(object[] input)
        {
            byte card_id1 = (byte)(int)input[0];
            Result_Send.Add(card_id1);
        }
       

       
    }
}
